<?php
/**
 * api相关路由
 * User: raisound
 * Date: 2022/10/13
 */
use think\facade\Route;
Route::miss(function() {
    return returnResult(config("config.code.resources_error"),config("config.describe.resources_error"),[],400);
});

/***************************账户相关 */
Route::rule("signIn","login/signIn"); // 登录
Route::get("test","login/index"); // 登录
Route::post("getToken","login/getToken"); // 登录获取token
Route::post("logout","login/logout"); // 退出登录

/***************************账号信息相关 */
Route::get("user/list","UserInfo/list"); // 获取账号信息
Route::post("user/add","UserInfo/add"); // 添加用户信息
Route::get("user/see","UserInfo/see"); // 用户信息查看
Route::post("user/modify","UserInfo/modify"); // 用户信息修改
Route::post("user/delete","UserInfo/delete"); // 删除用户信息
Route::rule("user/heartbeat","UserInfo/heartbeat"); // 更新token时间
Route::rule("user/tokenInfo","UserInfo/tokenInfo"); // 获取信息

/***************************label管理相关 */
Route::rule("label/list","Label/list");
Route::rule("label/see","Label/see");
Route::rule("label/add","Label/add");
Route::rule("label/modify","Label/modify");
Route::rule("label/delete","Label/delete");


// 对外服务相关
Route::rule("service/train","Service/train");
Route::rule("service/trainStatus","Service/trainStatus");